package com.dw.etl.core.bean.model;

import java.io.Serializable;
import java.util.Date;

public class MdMedTb implements Serializable {
    private static final long serialVersionUID = 1L;

    private String idMedTb;

    private String cd;

    private String na;

    private String sdTbca;

    private Byte fgDel;

    private String idUseCre;

    private String naUseCre;

    private String idUseMa;

    private String naUseMa;

    private Date dtCre;

    private Date dtModi;

    private String des;

    public String getIdMedTb() {
        return idMedTb;
    }

    public void setIdMedTb(String idMedTb) {
        this.idMedTb = idMedTb;
    }

    public String getCd() {
        return cd;
    }

    public void setCd(String cd) {
        this.cd = cd;
    }

    public String getNa() {
        return na;
    }

    public void setNa(String na) {
        this.na = na;
    }

    public String getSdTbca() {
        return sdTbca;
    }

    public void setSdTbca(String sdTbca) {
        this.sdTbca = sdTbca;
    }

    public Byte getFgDel() {
        return fgDel;
    }

    public void setFgDel(Byte fgDel) {
        this.fgDel = fgDel;
    }

    public String getIdUseCre() {
        return idUseCre;
    }

    public void setIdUseCre(String idUseCre) {
        this.idUseCre = idUseCre;
    }

    public String getNaUseCre() {
        return naUseCre;
    }

    public void setNaUseCre(String naUseCre) {
        this.naUseCre = naUseCre;
    }

    public String getIdUseMa() {
        return idUseMa;
    }

    public void setIdUseMa(String idUseMa) {
        this.idUseMa = idUseMa;
    }

    public String getNaUseMa() {
        return naUseMa;
    }

    public void setNaUseMa(String naUseMa) {
        this.naUseMa = naUseMa;
    }

    public Date getDtCre() {
        return dtCre;
    }

    public void setDtCre(Date dtCre) {
        this.dtCre = dtCre;
    }

    public Date getDtModi() {
        return dtModi;
    }

    public void setDtModi(Date dtModi) {
        this.dtModi = dtModi;
    }

    public String getDes() {
        return des;
    }

    public void setDes(String des) {
        this.des = des;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MdMedTb other = (MdMedTb) that;
        return (this.getIdMedTb() == null ? other.getIdMedTb() == null : this.getIdMedTb().equals(other.getIdMedTb()))
            && (this.getCd() == null ? other.getCd() == null : this.getCd().equals(other.getCd()))
            && (this.getNa() == null ? other.getNa() == null : this.getNa().equals(other.getNa()))
            && (this.getSdTbca() == null ? other.getSdTbca() == null : this.getSdTbca().equals(other.getSdTbca()))
            && (this.getFgDel() == null ? other.getFgDel() == null : this.getFgDel().equals(other.getFgDel()))
            && (this.getIdUseCre() == null ? other.getIdUseCre() == null : this.getIdUseCre().equals(other.getIdUseCre()))
            && (this.getNaUseCre() == null ? other.getNaUseCre() == null : this.getNaUseCre().equals(other.getNaUseCre()))
            && (this.getIdUseMa() == null ? other.getIdUseMa() == null : this.getIdUseMa().equals(other.getIdUseMa()))
            && (this.getNaUseMa() == null ? other.getNaUseMa() == null : this.getNaUseMa().equals(other.getNaUseMa()))
            && (this.getDtCre() == null ? other.getDtCre() == null : this.getDtCre().equals(other.getDtCre()))
            && (this.getDtModi() == null ? other.getDtModi() == null : this.getDtModi().equals(other.getDtModi()))
            && (this.getDes() == null ? other.getDes() == null : this.getDes().equals(other.getDes()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getIdMedTb() == null) ? 0 : getIdMedTb().hashCode());
        result = prime * result + ((getCd() == null) ? 0 : getCd().hashCode());
        result = prime * result + ((getNa() == null) ? 0 : getNa().hashCode());
        result = prime * result + ((getSdTbca() == null) ? 0 : getSdTbca().hashCode());
        result = prime * result + ((getFgDel() == null) ? 0 : getFgDel().hashCode());
        result = prime * result + ((getIdUseCre() == null) ? 0 : getIdUseCre().hashCode());
        result = prime * result + ((getNaUseCre() == null) ? 0 : getNaUseCre().hashCode());
        result = prime * result + ((getIdUseMa() == null) ? 0 : getIdUseMa().hashCode());
        result = prime * result + ((getNaUseMa() == null) ? 0 : getNaUseMa().hashCode());
        result = prime * result + ((getDtCre() == null) ? 0 : getDtCre().hashCode());
        result = prime * result + ((getDtModi() == null) ? 0 : getDtModi().hashCode());
        result = prime * result + ((getDes() == null) ? 0 : getDes().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", idMedTb=").append(idMedTb);
        sb.append(", cd=").append(cd);
        sb.append(", na=").append(na);
        sb.append(", sdTbca=").append(sdTbca);
        sb.append(", fgDel=").append(fgDel);
        sb.append(", idUseCre=").append(idUseCre);
        sb.append(", naUseCre=").append(naUseCre);
        sb.append(", idUseMa=").append(idUseMa);
        sb.append(", naUseMa=").append(naUseMa);
        sb.append(", dtCre=").append(dtCre);
        sb.append(", dtModi=").append(dtModi);
        sb.append(", des=").append(des);
        sb.append("]");
        return sb.toString();
    }
}